all: rchess move.o debug.o test

rchess: rchess.cpp move.o debug.o
	g++  -Wall -std=c++0x move.o debug.o rchess.cpp -o rchess

run: test
	./test

test: test.cpp move.o debug.o 
	g++ -Wall -std=c++0x move.o debug.o  test.cpp -o test

move.o: move.cpp evaluation.h
	g++ -Wall -O3 -march=native --std=c++0x -c move.cpp 

debug.o: debug.cpp
	g++ -Wall -std=c++0x -c debug.cpp 

clean:
	rm debug.o move.o debug.log rchess test
